//
// Created by 14590 on 25-9-2.
//

#include "compmode.h"

void DispCompMode() {
    LCD_SetTextFont(&CH_Font24);			// 设置2424中文字体,ASCII字体对应为2412
    LCD_SetColor(LCD_BLACK);				// 设置画笔颜色
    LCD_SetBackColor(LCD_WHITE);
    LCD_DisplayText(0, 0,"Competition Mode");
}

void KeyCompMode() {
    if (Key_F1_Down) {
        PageType = syscfg;
        osSemaphoreRelease(PageSwSemBinaryHandle);
    }
    else if (Key_F2_Down) {
        PageType = paraset;
        osSemaphoreRelease(PageSwSemBinaryHandle);
    }
    else if (Key_F3_Down) {
        PageType = calimode;
        osSemaphoreRelease(PageSwSemBinaryHandle);
    }
    else if (Key_F4_Down) {
        PageType = compmode;
    }
    else if (Key_All_Down){
        PageType = menu;
        osSemaphoreRelease(PageSwSemBinaryHandle);
    }
}